import Http from '../http';

export const pageLocalJob = function(params:{}) {
    return Http.get('/sys-local-job/page', params)
}

export const detailLocalJob = function(id:number) {
    return Http.get('/sys-local-job/detail/'+id)
}

export const localJobDocumentMap = function() {
    return Http.get('/sys-local-job/localJobDocumentMap')
}
export const updateLocalJobWithoutStatus = function(data:object) {
    return Http.post('/sys-local-job/updateWithoutStatus',data)
}

export const addLocalJob = function(data:object) {
    return Http.post('/sys-local-job/add',data)
}

export const statusLocalJob = function(data:object) {
    return Http.post('/sys-local-job/status',data)
}

export const removeLocalJob = function(id: Number) {
    return Http.post('/sys-local-job/remove/'+id)
}

export const runLocalJob = function(data: object) {
    return Http.post('/sys-local-job/run',data)
}

